import request from '@/utils/request'

// 查询家人账单列表
export function listFam(query) {
  return request({
    url: '/picture/fam/list',
    method: 'get',
    params: query
  })
}

// 查询家人账单详细
export function selectUserByFid(id) {
  return request({
    url: '/pauser/pauser/selectUserByFid?fid=' + id,
    method: 'get'
  })
}

export function getFam(id) {
  return request({
    url: '/picture/fam/' + id,
    method: 'get'
  })
}

// 新增家人账单
export function addFam(data) {
  return request({
    url: '/picture/fam',
    method: 'post',
    data: data
  })
}

export function famAdd(data) {
  return request({
    url: '/picture/fam/famAdd',
    method: 'post',
    data: data
  })
}

// 修改家人账单
export function updateFam(data) {
  return request({
    url: '/picture/fam',
    method: 'put',
    data: data
  })
}

// 删除家人账单
export function delFam(id) {
  return request({
    url: '/picture/fam/' + id,
    method: 'delete'
  })
}
